package com.fowo.api.model.payment.stream;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.validator.EnumsString;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 回款记录 导入导出辅助模型 */
@Getter
@Setter
public class PaymentStreamExcelPo {

  @NotBlank(message = "店铺不能为空")
  @Size(max = 50, message = "店铺长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*店铺")
  private String shop;

  @NotNull(message = "应收金额不能为空")
  @ExcelProperty(value = "*应收金额")
  private java.math.BigDecimal money;

  @NotBlank(message = "事业部不能为空")
  @Size(max = 50, message = "事业部长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*事业部")
  private String division;

  @NotBlank(message = "日期不能为空")
  @Size(max = 50, message = "日期长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*日期")
  private String jsDate;

  @EnumsString(
    value = { "是", "否" },
    message = "是否推送的可用值为 “是”, “否” 其中之一"
  )
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "是否推送")
  private String isPublish;

  @NotBlank(message = "应收币种不能为空")
  @Size(max = 50, message = "应收币种长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*应收币种")
  private String currency;

  @Size(max = 50, message = "收款币种长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "收款币种")
  private String currency2;

  @Size(max = 50, message = "收款金额长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "收款金额")
  private String money2;

  @Size(max = 50, message = "银行科目长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "银行科目")
  private String bankAccount;
}
